(function(){
  var heroSwiper = new Swiper('#examples-carousel', {
      speed: 600,
      spaceBetween: 0,
      autoplay: 5000,
      autoplayDisableOnInteraction: false,
      pagination: '.swiper-pagination',
      paginationClickable: true,
      direction: 'horizontal',
      spaceBetween: 60,
      slidesPerView: 1,
      simulateTouch: false
  });

$('#global-header').addClass('dark');

// redirect to register page with email
var $emailInput = $('#view-email input.subscribe-email-input[name=email]');
$('#view-email .btn-subscribe').on('click', function() {
  var email = $emailInput.val();
  if (email) {
    // window.location = `/register?email=${email}`
  }
});

$('.mobile-wechat').on('click', function (event){
    $(this).find('.wechat-avatar').toggleClass('wechat-avatar-open');
});

})();




